g = 130
i = "第一次"
if g <= 120:
    print(0)
elif g>120 and g<=140:
    if i == "第一次":
        print(250)
    elif i == "第二次":
        print(500)
elif g>140:
    if i == "第一次":
        print(1000)
    elif i == "第二次":
        print(2000)
